#pragma once

extern Unit* FindUnit(DWORD dwId1, DWORD dwId2);
extern Unit* FindUnit(DWORD dwSlotOwner, DWORD dwClassId, CHAR* szUnitName, DWORD dwId1, DWORD dwId2, DWORD* dwIndex);
extern Unit* FindNextUnit(DWORD dwSlotOwner, DWORD dwClassId, CHAR* szUnitName, DWORD dwId1, DWORD dwId2, DWORD* dwIndex);
extern VOID CommandUnit(Unit* pUnit, DWORD dwCommand, float fX, float fY, Unit* pTarget, BOOL bOnlyCmd = FALSE);
extern VOID CommandUnit_Build(Unit* pUnit, float fX, float fY, DWORD dwBuildClassId);

struct cmdUnit {
	BYTE bId;
	WORD _1; // 0
	DWORD dwOrder;
	DWORD _2; // -1
	DWORD _3; // -1
	float fX;
	float fY;
	DWORD _4; // -1
	DWORD _5; // -1
};